home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.ndhm.gtegsc.com!NewsWatcher!user
- From: freedmanj@mail.ndhm.gtegsc.com (Jerry Freedman)
- Newsgroups: comp.lang.c
- Subject: MACROS with varying number of parameters
- Date: 15 Feb 1996 18:40:47 GMT
- Organization: GTE Government Systems Corporation
- Message-ID: <freedmanj-1502961337370001@155.95.68.41>
- NNTP-Posting-Host: 155.95.68.41
-
-
- A while back I saw a trick for writing macros with a variable number of
- paramters. Its very useful for debugging stuff like
-
- #ifdef
- #define DEBUG_PRINT(some parameters) printf(parameters)
- #else
- #define DEBUG_PRINT(some_parameters)
- #endif
-
- Unfortunately, I lost it. I'd like to see it again,
-
-
- Thanks
- Jerry Freedman,Jr
-